package com.j01y.myhooks;

import android.app.Application;
import android.content.Context;

import com.j01y.myhooks.Utils.Logger;

// 用于全局获取context
public class MyApplication extends Application {
    private static Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        Logger.logi(String.format("StartUp com.j01y.myhooks.MyApplication And Get Context %s", context));
    }

    public static Context getContext() {
        return context;
    }
}
